package bsts.model;

import java.io.Serializable;
import java.util.*;
import java.text.SimpleDateFormat;

public class Complaint implements Serializable {


	private static final long serialVersionUID = 1L;
	private long complaintId;
	private Date timestamp;
	private String complaint;
	private ComplaintStatus complaintStatus;
	private String userId;
	private String customerNric;
	
	public Complaint(long complaintId, Date timestamp, String complaint,
			ComplaintStatus complaintStatus, String userId, String customerNric) {
		this.complaintId = complaintId;
		this.timestamp = timestamp;
		this.complaint = complaint;
		this.complaintStatus = complaintStatus;
		this.userId = userId;
		this.customerNric = customerNric;
	}

	public long getComplaintId() {
		return complaintId;
	}

	public void setComplaintId(long complaintId) {
		this.complaintId = complaintId;
	}

	public Date getTimestamp() {
		return timestamp;
	}
	
	public String getTimestampStr() {
		
		return new SimpleDateFormat("dd-MMM-yyyy/HH:mm:ss").format(this.timestamp);
		
	}

	
	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public String getComplaint() {
		return complaint;
	}

	public void setComplaint(String complaint) {
		this.complaint = complaint;
	}

	public ComplaintStatus getComplaintStatus() {
		return complaintStatus;
	}

	public void setComplaintStatus(ComplaintStatus complaintStatus) {
		this.complaintStatus = complaintStatus;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getCustomerNric() {
		return customerNric;
	}

	public void setCustomerNric(String nric) {
		this.customerNric = nric;
	}
	
	
	
}
	

	